<template>

  <el-row type="flex" align="middle" style="height: 40px;width:100%;">
    <el-col>{{ data.name }}</el-col>
    <el-col>
      <el-row type="flex" justify="end">
        <span>{{ data.manager }}</span>
        <el-dropdown>
          <span class="el-dropdown-link">
            操作<i class="el-icon-arrow-down el-icon--right"></i>
          </span>
          <el-dropdown-menu slot="dropdown">
            <!-- 怎么把下面的内容拿到父组件中：插槽-->
            <!-- slot标签来接收父组件的数据 -->
            <slot></slot>
          </el-dropdown-menu>
        </el-dropdown>
      </el-row>
    </el-col>

  </el-row>
</template>

<script>
export default {
  name: 'TreeTool',
  components: {},
  props: {
    data: {
      type: Object,
      required: true
    }
  },
  data() {
    return {

    }
  },
  created() {},
  mounted() {},
  methods: {

  }
}
</script>

<style lang="scss" scoped>

</style>
